package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.RechargeMapper;
import com.qfedu.openplateform.manager.entity.Recharge;
import com.qfedu.openplateform.manager.service.RechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lileijian
 * @create 2021-12-02 21:44
 */
@Service
@Transactional
public class RechargeServiceImpl implements RechargeService {
    @Autowired
    private RechargeMapper rechargeMapper;
    @Override
    public void addRecharge(Recharge recharge) {
        rechargeMapper.addRecharge(recharge);
    }

    @Override
    public void updateRecharge(Recharge recharge) {
        rechargeMapper.updateRecharge(recharge);

    }

    @Override
    public void delRecharges(Integer[] ids) {
        rechargeMapper.delRecharges(ids);
    }

    @Override
    public List<Recharge> getRechargeList() {
        List<Recharge> rechargeList = rechargeMapper.getRechargeList();
        return rechargeList;
    }
}
